package com.test.service;

import java.util.List;

import com.test.domain.Reply;
import com.test.domain.Topic;

public interface ReplyService {
	/**
	 * 添加回复模块
	 * @param Reply
	 * @return
	 */
	public boolean addReply(Reply reply);
	/**
	 * 依据id删除回复
	 * @param id
	 * @return
	 */
	public boolean deleteReply(Integer id);
	/**
	 * 修改回复
	 * @param Reply
	 * @return
	 */
	public boolean updateReply(Reply reply);
	/**
	 * 通过ID查找指定的Reply
	 * @param id
	 * @return
	 */
	public Reply findReplyById(Integer id);
	/**
	 * 查询回复列表
	 * @return
	 */
	public List<Reply> findAllReply();
	/**
	 * 查询指定主题下回复列表
	 * @param topic
	 * @return
	 */
	public List<Reply> findRepliesByTopic(Topic topic);
}
